Sample: Readings export using task API
This sample shows a basic Readings Export request. The RunTask operation is marked in bold. The document that is created by the Readings Export is returned in the results document.
Tip: Use different templates for RunTask operations and ScheduleTask operations, to distinguish them in the IEE rich client Task Monitor. Too many API tasks might account for a slow web server.
Copy
<?xml version="1.0" encoding="utf-8"?>
<Task xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunTask Template="DefaultReadingXmlExportApi" ReturnType="String">
<Parameters>
<Parameter Name="StartDate" Value="2001-01-31T23:15:00Z" Index="0" />
<Parameter Name="EndDate" Value="2001-02-01T03:15:00Z" Index="0" />
<Parameter Name="NodeType" Value="ServicePoint" Index="0" />
<Parameter Name="EntityID" Value="02494" Index="0" />
<Parameter Name="NumberOfDecimals" Value="2" Index="0" />
<Parameter Name="TimeZoneID" Value="EasternUS" Index="0" />
<Parameter Name="ExternalSystemID" Value="MV90" Index="0" />
</Parameters>
</RunTask>
</Task>